<?xml version="1.0" encoding="UTF-8"?>
{% load localeurl_patches_tags %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>{% block title %}Page title{% endblock %} | mesawarati.com</title>
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/reset.css" type="text/css" media="screen" charset="utf-8" />
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/base.css" type="text/css" media="screen" charset="utf-8" />
    <script src="http://www.google.com/jsapi?key=ABQIAAAARMXj5Z8sBd6APRJliJ4f6BS8Z5MIVttDTNTs6fo7t-_hI1Y3shTwnJBj8uUn89FgybUyK-NlubFjQA" type="text/javascript"></script>
    <script language="Javascript" type="text/javascript">
        google.load("jquery", "1.3.2");
    </script>
    <script src="/media/js/jquery.droppy.js" type="text/javascript"></script>
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/droppy.css" type="text/css" media="screen" charset="utf-8" />

    {% block dochead %}{% endblock %}
</head>
<body id="{% block body_id %}default-id{% endblock %}">
<div id="wrapper">
    {% block nav %}
    <ul id="nav">
        <li><a href="/">home</a></li>
        <li><a href="/about/">about</a></li>
        <li><a href="{% url pl-photo-archive %}">photos</a>
          <ul>
            <li><a href="{% url pl-photo-archive %}">latest</a></li>
            <li><a href="{% url pl-photo-list 1 %}">all</a></li>
          </ul>
        </li>
        <li><a href="{% url pl-gallery-archive %}">galleries</a>
          <ul>
            <li><a href="{% url pl-gallery-archive %}">latest</a></li>
            <li><a href="{% url pl-gallery-list 1 %}">all</a></li>
          </ul>
        </li>
        <li><a href="{% url photo_tags_list %}">tags</a>
        </li>
        <li class="last">
        <a href="">languages</a>
          <ul>
            {% for lang in LANGUAGES %}
              {% ifequal lang.0 LANGUAGE_CODE %}
                <li class="selected"><a 
                href="{{ request.path|change_locale:lang.0 }}"
                >{{ lang.1 }}</a></li>
              {% else %}
                <li><a href="{{ request.path|change_locale:lang.0 }}"
                >{{ lang.1 }}</a></li>
              {% endifequal %}
            {% endfor %}
          </ul>
        </li>
        {% if request.user.is_staff %}
        <li class="last">
            <a href="/admin/">admin</a>
        </li>
        {% endif %}
    </ul>
    <script language="Javascript" type="text/javascript">
       $(function() {
           $('#nav').droppy();
       });
    </script>
    {% endblock %}

    {% block content %}
    <p>content</p>
    {% endblock %}

    <br class="clear" />
    <div id="footer">
        <p>copyright 2009</p>
    </div>
</div><!-- close wrapper -->
</body>
</html>
